﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TopicList.aspx.cs" Inherits="TopicList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>主题列表</title>
</head>
<body background="Images/Login.jpg">
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="Panel1" runat="server" Height="466px" Style="left: 246px; position: absolute;
            top: 222px" Width="523px">
            <asp:GridView ID="gvTopicList" runat="server" AutoGenerateColumns="False" BackColor="#DEBA84"
                BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2"
                Height="232px" OnRowCommand="gvTopicList_RowCommand" OnRowDeleting="gvTopicList_RowDeleting"
                OnRowUpdating="gvTopicList_RowUpdating" Width="512px" OnPageIndexChanging="gvTopicList_PageIndexChanging">
                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                <Columns>
                    <asp:BoundField DataField="TopicID" HeaderText="编号" />
                    <asp:BoundField DataField="UserName" HeaderText="用户名" />
                    <asp:BoundField DataField="TopicTitle" HeaderText="标题" />
                    <asp:BoundField DataField="CreateDate" HeaderText="创建时间" />
                    <asp:ButtonField CommandName="Update" HeaderText="修改主题" Text="修改" />
                    <asp:HyperLinkField DataNavigateUrlFields="TopicID" DataNavigateUrlFormatString="Detail.aspx?TopicID={0}"
                        HeaderText="详情" Text="主题内容" />
                    <asp:ButtonField CommandName="Delete" HeaderText="删除" Text="删除" />
                </Columns>
                <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
            </asp:GridView>
            <asp:Label ID="lblPages" runat="server"></asp:Label>
            <asp:HyperLink ID="linkNewTopic" runat="server" ForeColor="Blue" NavigateUrl="~/AddTopic.aspx">新主题</asp:HyperLink></asp:Panel>
    
    </div>
    </form>
</body>
</html>
